import request from '@/utils/request'

export function getPosterList(query) {
  return request({
    url: '/sell/sellPoster/paging',
    method: 'get',
    params: query
  })
}
export function deletePoster(posterId) {
  if (!posterId) {
    return false
  }
  return request({
    url: '/sell/sellPoster/delete',
    method: 'post',
    params: { posterId }
  })
}

export function savePoster(poster) {
  return request({
    url: '/sell/sellPoster/save',
    method: 'post',
    data: poster
  })
}
